﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.MdWebNavigation.Request;
/// <summary>
/// 分页获取网站导航列表请求实体
/// </summary>
public class RequestGetMdWebNavigationPageListModel : RequestBaseModel
{
    /// <summary>
    /// 网站名称
    /// </summary>
    public string? Name { get; set; }
    /// <summary>
    /// 页面路径
    /// </summary>
    public string? PagePath { get; set; }
    /// <summary>
    /// 外部链接
    /// </summary>
    public string? Link { get; set; }
    /// <summary>
    /// 是否外链（0是 1否）
    /// </summary>
    public string? IsExternalLink { get; set; }
    /// <summary>
    /// 上级
    /// </summary>
    public long ParentId { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 创建人
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新人
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string OrderBy { get; set; } = string.Empty;
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool IsDesc { get; set; }
    /// <summary>
    /// 当前页
    /// </summary>
    [Required(ErrorMessage = "当前页数不能为空")]
    public int PageIndex { get; set; }
    /// <summary>
    /// 每页条数
    /// </summary>
    [Required(ErrorMessage = "每页条数不能为空")]
    public int PageSize { get; set; }
}